#!/bin/bash
while true;do
tupian=$(find /opt/fdfs/data2/ -type f -name "tupian.tar.gz"|wc -l)
if [ $tupian -eq 1 ];then
	cd /opt/fdfs/data2/
	tar xf tupian.tar.gz
	find /opt/fdfs/data2/ -type f -name "tupian.tar.gz"|xargs rm -f
	exit 0
fi
sleep 10
done